<template>
  <div>
    <picker mode="region" @change="bindRegionChange"  :value="region" :custom-item="customItem">
    <div class="picker">
      当前选择：{{region[0]}}，{{region[1]}}，{{region[2]}}
    </div>
  </picker>
</div>
</template>

<script>
export default {
  data() {
    return {
      region: ["广东省", "广州市", "海珠区"],
      customItem: "",
      codeList:[]
    };
  },
  methods: {
    bindChange(e) {
      console.log("er", e);
    },
    bindRegionChange: function(e) {
      this.region=e.target.value
      this.codeList=e.target.code
      console.log("picker发送选择改变，携带值为", e);
    }
  }
};
</script>

<style>
</style>
